Instead of repeating the commands acquired with each rank, it should only display the commands unique to it followed by "and all of the above".