Completes 4.2-4.9 exercises on The Ocean of Objects

Signed-off-by: Irina Chichikova <diva.artim@gmail.com>