starting to play with <algorithm>