Adding examplecode in a file