shared prototype example and why we cannot use this method