which function is performed by the collapsed core layer in a two-tier architecture?