Implementation of some commonly used codes