added mail and hash functions
Merge branch 'demo' of https://github.com/nromanen/Ch-024 into demo