Created another class for Heartbeat