added min value to lecture 3-3