Adding functional Set 1, Challenge 5.