i prepared myself for a multitude of reverses ; my operations might be incessantly baffled , and at last my work be imperfect : yet , when i considered the improvement which every day takes place in science and mechanics , i was encouraged to hope my present attempts would at least lay the foundations of future success .