Writing header and cpp files.