3 Tier Implatation