Main class, getAreaBox function added