created department class as sample