programs from the first programming assignment