Write Makefile and tests.