Observer declaration with prototype