Assorted code mostly for self-learning and coursework