A tiny function to create an object with 'observable' properties