outlined code. made makefile.