prelimnary code to implement class in gem code