Creating the layered architecture