Added implementation for get function