Q7 finished

bug fixed where "i" would print on wrong line due to memory_offset issue