loaded sample code