A eventedmind tutorial