Samples of my code for those who are interested