working code
moved commented version to separate file
Merge branch 'master' of https://github.com/baderj/practical-reverse-engineering