finished 04-09 code