My attempt at creating methods and classes for a singly linked list in Ruby