Add task_12 and tests for it