Fixed empty program bug, all tests passing