Adding Dao function from Uebung 6.