adding final solution
added final solution
draft