split out simple shm example to work around gradle bug in intellij ide