Code fragments used when teaching ITEC 2150 Intermediate Programming