source code for companytype