Mandatory exercises in assignment 2