HW4: prob1 model.