implemetation of compass and beepers