Modified code1 and code2 added doubles and a string
Added code3
Added double array to code3