completed code to retrieve shoulder abduction angle