Incorporating business rules in an object-oriented system