Add get rule method