Ekaterina's solution of homework 1