adding prob1 solution