Updated code and graphics.