updated sample code, initial idea of rituals