ML - assignment 6 on Sampling method - Encryption part