added classes for elements collection and queue. also added more tests ...