Another implementation of myLast