Finished Cavalieri, starting min/max prpoblems