Final thursday. New method getcertbalanceratio(int thetick) added