solutions to tasks from week2