sample code from some projects and websites