Initial set of ported codes, including my own answers to exercises