3-tier architecture