Arrowhead refactoring exercise

First attempt at refactoring arrowhead.rb