add solution for ex 16