 we can make it easier to read if our funciton that prints name and key checks if the values are the same and if so, only print one.