solution for problem 2, JS OOP, week 2