added funny implementation of last with a do-while loop without local variable initialized to default value