UNIX head function code added