A three-tiered architecture