Task constructor + tests
code style