Rules and Policies for Programs