Returning tuples from rules

Should solve issue #2