will use a size iterative method instead of static int
instead of having a constructor in returnobjectimpl that takes int and then assigns an error based on a switch case scenario, there will be 2 constructors instead, one taking an object and the other taking an error directly
finished a complete implementation of ReturnObjectImpl that compiles but ArrayList seems to be having trouble passing errormessage into the returnobject constructor