Fixed a stupid mistake in logic for tasks 2 and 3.