Both classes are containers for other data and we can pass the data directly without an additional code.