Compass example