move code to /code, and write Makefile.