re-write prototype chain in ch6. exercise 2