add policy code, comments code is another way to implement policy class