added smarty class