Adding point and line classes