Fixed Code
Fixed Code1

Got the code to work!