added a way to provide default values to get method.