Deleted state 10. Now structure of the program is the same as program3. Not tested.