mid term homework