First (very simple) working garbage detector.