Submitted homework. Should use close rather than actual_close from online comments.