Solved first part of 2a