 His Edinburgh school educated, fed and provided a home for 45 of the Old Town's most destitute children.Boys were also taught how to make shoes and clothes; the girls, to be 'thrifty wives for working men".Here, Charles Dunbar learned to write and was trained as a carpenter and it appears that it was during his time at the school that he learned to play the Bagpipes.