three tier architecture mobile