Added comments for the strategy pattern code.