Code for programming course