Unable to create a collection from my classes issue resolved