finished HW2, receiving BAD_ACCESS_ERROR