a singly linked list program in ruby
refactors code along the lines of the DRY principle by leveraging the power of ruby blocks