updated paper with examples