Factorisation
Deal with layers