Solution for task #18 has been added