add solution for ex 21