all sample logic and programmes