Base source for midterm project