Avoidance and classical conditioning of leg flexion in dogs