A selection of functions I programmed for course exercises