Implemented while constructor in Statement.