Added code to create Compass