add solution for ex. 20