solved problem 6 and added latex notes to the descriptions