Next, copy this example WebAssembly text module into your project. It exports a function for calculating the greatest common denominator of two numbers.
## `gcd.wat`
```wat
{{#include ../examples/gcd.wat}}
```
Create a bash script that will invoke GCD three times.
## `gcd.sh`
```bash
#!/bin/bash
function gcd() {
# Cast to number; default = 0
local x=$(($1))
local y=$(($2))
# Invoke GCD from module; suppress stderr
local result=$(wasmtime examples/gcd.wat --invoke gcd $x $y 2>/dev/null)