points.clj function simplyfied