the room was lined , from the high domed ceiling to the worn wooden boards with sturdy shelves filled with books , spilling on to the floor , piled up beside his battered table , resting precariously on the only other chair in the room .