HeartBeat class