adding a bit to problem 11