working on data class