now animation can run without the code animation part.
adding creatObject method of the Linked list