Homework 3 - Valentin Georgiev - fixed