Added Professor Samson's initial code