refactored scripts for test task 3 added