solve "stupid" exercise 3b