added code for exp6, exp7 and exp8