tqdm() behind the scenes

Implement tqdm from scratch