finish problems 1-3, add comments