Created basic Rules class

It doesn't do much now, but it'll be quite nice in the future.