implement assert statement and enhanced for statement (foreach)