Created an array of objects which can be used further.