solved #8-11