homework to the JavaScript oop course