Solutions of tasks 1 to 4 after retrospection

All 4 tasks working properly and correctly written by standards of
'Pep8'.
A little improvements and adjustments here and there :)