Adding code for proxy pattern