Extract Rules class