HW6: Final Version