OOP Help - How do I get this code block to recognize one of its arguments?

Keywords´╝Ü lua lua-table


I'm learning Lua and how to implement OOP. Trying out a test example of an object seems to return one of the argument of the object as 'null' despite being assigned one.

Please read full code: https://pastebin.com/mZaQ07JA

function Character(Name, Level, Class)   --Constructor
    return {GetName = T.GetName, GetLevel = T.GetLevel, GetClass = T.GetClass}
-- Snippets
Player = Character("Bob", 1, "Novice")

When I try printing Player.GetName() it returns null instead of Bob. Can you guide me where I went wrong?