Class inst gen

allows for class instantiation and attribute access