prototype and example of molecule generator