ERP classic theory and ERP detailed working principle