Solution for ex 11