Creating model layer