initialize toy application second chapter