sample code core