#7 Layout save function (finished).