Code explanation, preparing test.