improved 6b
minor changes and added ex 6b template