Adding final solution