Fixed split program; tests pass