Update cal.cpp