finish problems 3 and 4 of homework 10 (homework.sql)