Struggling to make up for the art failings

Standard

Have spent the whole night trying to get LaTeX and METAPOST to draw my simple paging system diagram. Have got this far:

My eldest daughter has a piece of art going on display at a gallery tomorrow. All I can say is that she doesn’t get her great skill at this from me!