Small sample (not quite working yet, relies on 0.9.6 and Array each is still buggy), adjust use to have -lm, cut header into .h instead of including .c file