move model.js to class.js, create a single classes's representation