Principles and working of 3D printing