[ UPD ] Bugfixes in Task3 and Task4.