implement most of the functionality of cal, the UNIX program for calendar display, from scratch