Control using each and do