Solving the assigment