[Machine Learning] Solution of assignment from 8th week.