How to create and edit a program