avg and med.cpp
Section 3-2