Some sample functions I wrote for UCLA CS31