Solutions to programming problems I have completed