finished task 2 of javascript apprentice