Final version of solutions