add IpRule class