Refactor trussApp