started a seperate list class for circulare linked list