add master data class and sub class