Modified first() and last() to accept no arguments.