Added exercise 2.10 with proper code