trying to understand the code part 1