Final project for optimization