finished question three. just needed unions