rules engine and recommendation engine working for reddit