creating Matrix template, work in progress