Another way to do the exercise