Refactor over the examples and framework