added draft of the rules implementation, nothing serious here, just trying things out