solution for level3
Solution for level 4