Fixed bug in first task implementation.