Created new arraylist and inputed required methods