three file code