Added code for experiment 12 part 1