Add Block code/name as class attribute