various pieces of code I have written for various puposes