complete logic chapter of tutorial