finalizing homework for C3