three layer model