adding the
addAtBeginning method
addAtEnd method