added q11 - one little bug with leading 0s but have overcomplicated this question enough\!