changed function args to be the same as the function stubs given in the assignment.