finished class js excercises