added all the collection initialization as well as formatting the code