See attached. It is a 7 pages long assignment