Added ex 1 solution