divide source into .h and .c