Other approach of the exercise