updated open class example