Finsihed 4 and 5 programming and writeup