Finished exercises, differentiation still messed up.