Added framework

Some refactoring. Added some elements to the stage, so you can see how
it's done.