Implementing problem 6 (dan-then-dog)
Implementing problem 7 (stream-add-zero)