Lite refactoring and cleaning class.js and start implementing abstract