problem and part of problems 2 and 3