Plugin tutorial part 2 revised.