Create Rule.java

Created a stub for the Rule class.