Sorted the code in methods. Listed the salaries at the end in three columns