Finished homework

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>