class
updated
rewrote class.js. Not yet tested