Solution to EC #2 added