organized code, started on stmt() for while