point2.1

bug in onLine() method fixed and Error class added