Fixed path setting example. 

$PATH needs to come *after* $i. You set a path by declaring the directory and saying $PATH afterwards.