bug hunting
Working prototype