added doooooope sudo code