hw4: doing shit to make it write objects to file, so I can read and format them later