prob1 and prob2