Remove need for temporary variable for problem 2.