add heartbeat example