Solutions for Task A