Succesfully printing to .out file