iterative check in for lecture 3
iterative check in for lecture 3