hw6 drawing and range fix
hw6 nearest