Head First repository - sample code