implement integer and boolean type