Compass class