problems 1 & 2