added in assignment about OOP in Javascript