This paper addresses some of the problems a majority of retired individuals face:Why and in what proportion should they invest in a life annuity to maximize the utility of their future consumption or a bequest? The market considered in this work is made up of three assets: a life annuity, a risky asset and a cash account. As this problem doesn't accept any suitable explicit solution, it is numerically solved by the Markov Chain approximation developed by Kushner and Dupuis. Without a bequest motive, we observe that the optimal planning of consumption is divided into two periods and that optimal asset allocation should include the risky asset. Next, the influence of a bequest on consumption and investment pattern is developed. We demonstrate that even with a bequest motive, pensioners should allocate a part of their wealth to the purchase of life annuities.