added pseudo code to give instruction for working on this at home
altered int k to char * k for accessing entry structs