add MassAndWeight class