example use and define functions