The endpoints of a line segment graphed on a Cartesian coordinate system are (4, 1) and (-2, -4). What are the coordinates of the midpoint of the segment?