working task 1 sans file io