modified the code to have them both use prepend as in the quiz answer
minor changes