a simple function pointer example