Split problem files into .h and .cpp