how to use Nested Control Structure