sample object and prototype code