Added override of Object methods to Line and Point classes