Use function pointer as  property