project09 angles function