Second part of exercise; last problem