questions logic