Created the methods to list the avarage and the salary distribution