implemented class structures, not really done yet