HW3 coursera, added param.