Added contains function for convenience to ArrayList