Fixed Inefficient code

Fixed all of the Inefficient code/made a learning resource.