Foundations of Fairness and Accountability