Measurements of the top-quark properties at CMS