Library passes all tests successfully. Modified the class to correct errors.