Updated Working but incomplete test program