list_removeLast function