Adding function pointer example