added compass code

-compass