Adding chapter3 code

Signed-off-by: Przybylski 중광 <r351574nc3@gmail.com>
Signing commit