this is a stable version and it is for submission to moodle: note this version consider average of ratios and neglect unnormal real time ratio