Init: solution to ex. 3-2 (with bug workaround)