exercises for the MIDS program at UC Berkeley