Exercise 2.3 script as well as derivation in report