Sort:  

Nice one. I almost forgot about the cin >> and cout <<
Good example. I want to do something similar thinking if is possible to get non computer programming students to learn some programming.