Point Class and input method