changes to implement tutorial part 3