theHead was changed from private to public access
 code was added for head() and rest() methods