Minor removal of unused variables in HW8 functions