Refactored hasError() and getError()
Added isEmpty(), size() and get()
Removed constructor, added "class" in the first line, removed the first "new" on the 17th line