Create workingCode

This is the code from the program that does what I want.