adding in code snipets