modified historical info and added sample code