testing online sample code