Make first and last functions