added Compass object class