Writing Metacode from scratch