added the rules. Not complete.