made some code refactor
Merge branch 'secondDemo' of https://github.com/nromanen/Ch-024 into secondDemo