invoke the getDemension() method on the object rather than the class

EDIT: Oh you solved it. nevermind lol