Added toString method to Cons so it's easier to test