Added two alternate methods of solving the exercise.