Adding the get function with default value possibility