This is the code that was in Code 2 but now the different parts work.