Add function to compute Kepler orbital period, including test.