Reimplemented Last operation

For issue #57.