Assignment 7: Optim

WIP.