Added a rough draft of the addPoint functionality