Some basic programming exercises