adds prog6 with minor fixes to prog5
minor fix prog6
Adds prog9
Adds prog10