add prelim version of problem 3