Fixed after Andrew's review,
try-with-resource
Merge branch 'task3' into task4