HOMEWORK CORRECTED