Algorithm 2: Prevention
Algorithm 1
Algorithm 2