Second Function Update

Added cache Function