done tutorial logic