Add separate source file for demo main function.