Equation 4. (w5)
Equation 1. (w1)
Change library functions. Some refactoring.