Put actual properties on Rule obj, make createTask an instance method