Initial rule engine framework