Defined a separate Point class.