Companion code for User Interface Programming for Games