Home Task #10

now works correctly