Rules and Template Inside