added ex5~ and fixed printing issue with ex3c.