Modified code1 and code2 added doubles and a string