implement Class.new with block
resolve conflict #1552