added solution for level 3