changed setter method in returnobjectimpl to a constructor method, started to write method for inserting an object into arraylist
adding another constructor method which takes an int, then there will be a switch case in geterror() so depending on what int is put into the returnobject, will get a different error