Create thaed.cpp