Homework 3 by Ivailo Ivanov