Commented the code this far and plugged all to te solver