Building a layered model