can u explain how linking is made between layers in three-tier architecture................