first, last  parameters

added code to test the first, last parameters.