Fixed indentation and added trace for part 3