tutorial logic is done