Using set, get method in provider