exercise 2.5 done, let's do this in lambda the next time