add setter and getter for contentType property