What is the version of the following sentence with correct punctuation?

It consisted of 4 departments mechanical agricultural engineering and chemical
It consisted of 4 departments: mechanical, agricultural, engineering and chemical.