Changes to pseudo code. Used angle type.