Changed to standards-recommended prototype inheritance