replaced the return type of the class initializers from id to
instanceType