Function definition and usage