IP lab3: implemented area filter