implementing slides for code