Changed writeNumbers method and formatted the page