Added initial class block rendering logic