added rest of programs for part 2