Applying patches

TODO write this tutorial!