sample code of astorka project