Implemented Basic Codes