codes I wrote