first commit
second commit
Merge branch 'master' of github.com:petr-permyakov/ProgrammingAssignment2
add functions