CNS187 HW6. Using error instead of accuracy