Rewrite a basic framework