Played around with file input and output