COMPLETED task 9_1; added EmptyError