tutorial edited a bit