Added part a to task 1