added 'dobrar' function