Completes 5.7-5.9 exercises on Plains of Prototypes

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