Resolved syntax issues and added Department class.