created classes "point" and "line"