Added TimeInterval class to add time blocking in group and modified the filter accordingly