edited prob5 and added solution to problem6