Add field visibility

Add field visibility.This commit will contribute #2.