Homework 2 for SoftUni