Adding points in a box code