simple app records heart beat information to file