Arrowhead refactoring exercise

First attempt at refactoring arrowhead.rb
Trailing whitespace detected.