Original code

Added original code from website.