code from the course introduction to programming