almost have a class instantiation working