Tutorial chapter two code