added implementations of last using for loop with options, for loop with flag, and iterator with a quick check if there are any elements in the list