Studying variables scope