working on DBO algorithm in prog 3