Move code inside the main function and show results in a human readable format