Tore the code apart to see how it works