added Observer type and updated Contract to process it
integrated observer into methodhandler
added observer example code