Changed add method
Tail implemented