local rect = display.newRect(870,100,10,10) means that the rect size is width=10, height=10 located at position x=870 y=100.
Also the anchor points are by default 0.5 which means the center-point of the rect will be positioned at the x,y coordinates given to newRect()