Trying to incorporate object output and object input streams