How to create and get the molecular weight of a structure containing repeat units/monomer units?