Compiles correctly now. Sketched out linear restraint class.