Create file with norm and twice functions defined on page 5.