Modeling and Verification Using UML Statecharts