write optimisation functions chapter 10. cl.exe obj