new Foo.instanceMethod() is not allowed.

use new Foo().instanceMethod() instead