adding a point and type example