Write both programs to memory