Code I wrote the week of June23, for SciCoder