solutions for level 1 & 2