Function Based Rule Authoring