is there a way for the function to create the objects without storing them in a variable let as shown in the following code: