Source and Test Code for experiment 1