Program written as part of coursework.