copied from the linkedList project
initial class structure