Added initialization function with observations