Fixed all errors in HW5