Experimenting with rules...(testcases not yet passing)