worked on making a recursive function to put objects inside of objects