based on
https://github.com/nashtash/cmmm
with added data