Added the concept of rules and a few interfaces
Added a rough hint of the class structure needed to store the application state