extract data class to new file