could we break building markup and creating a point into two separate functions?