created prob2, modified prob1