add class helper

use a helper and element for formatting properties