code for escape from dev/null challange http://swdc.se/devnull/