started to implement ’get_angle()’ function