3 tier architecture