Devide application structure on layers