move block class into objects.js