First tests with Rules.

Compiles and runs, behavior is broken.