implemented angle function, instance & class