CA5 completed. Need more info about the task. It's unclear.

Also fixed are some minor logical problems which again didn't effect the
outcome of the program.