solved prob1