class tutorial (js and objects)