blog 2 sample code done