Basic Definitions and Logic Gates Explained