adding final solution