added gear class for the ratio problem