Resolved compilation errors. Testing/Printing still has to be done. Also added LaTeX and pdf of exercise 5