Implemented 'last' + unit tests