Required pull request for checking the LabWork 1 and 2

All comments in all commits are considered.
Just one more thing for the future: you should not put any magic numbers into the source code! Use #defines or static constants. In this assignment it's OK. I just would like to give you some hints to improve the quality of your code.