Add classes to blocks