This are sections of code we found useful and decided to share