Update of the molecule exercise
Refactored version of the molecule exercise