Qualitative modeling using the causality relation