add function value example and exercise in basic