Working solution for assignment