@@ -0,0 +1,1524 @@
+// Copyright 2019 Google LLC%0A//%0A// Licensed under the Apache License, Version 2.0 (the %22License%22);%0A// you may not use this file except in compliance with the License.%0A// You may obtain a copy of the License at%0A//%0A//     https://www.apache.org/licenses/LICENSE-2.0%0A//%0A// Unless required by applicable law or agreed to in writing, software%0A// distributed under the License is distributed on an %22AS IS%22 BASIS,%0A// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A// See the License for the specific language governing permissions and%0A// limitations under the License.%0A%0Apackage com.google.sps.data;%0A%0Aimport java.util.ArrayList;%0A%0A/**%0A * A class to make a User type, containing an optional %0A * email String and a list of trip IDs the user can have. %0A * Users that are not logged in can only have one trip ID.%0A */%0Apublic final class User%7B%0A%0A  private String email;%0A  private ArrayList%3Clong%3E tripIds;%0A%0A  public User(long tripId) %7B%0A    ArrayList%3Clong%3E singleTrip = new ArrayList%3C%3E();%0A    singleTrip.add(tripId);%0A    this.email = %22%22;%0A    this.tripIds = singleTrip;%0A  %7D%0A%0A  public User(String email, ArrayList%3Clong%3E tripIds) %7B%0A    this.email = email;%0A    this.tripIds = tripIds;%0A  %7D%0A%0A  public Trip(long id, ArrayList%3CString%3E destinations,%0A              ArrayList%3CString%3E interests, ArrayList%3CString%3E route) %7B%0A    configureTrip(id, destinations, interests, route);%0A  %7D%0A%0A  public ArrayList%3CString%3E getEmail() %7B%0A      return this.email;%0A  %7D%0A%0A  public ArrayList%3CString%3E getTripIds() %7B%0A      return this.tripIds;%0A  %7D%0A%7D 

Create User class. Account for optional email parameter