renamed variables to design properties. changed examples to be in javascript