coding, commenting, and write-up finished