Create appthread.cpp