it is sample code how to use userdefalt