 As a thirteen-year-old boy, he experienced the revolutionary year of 1848, which inspired him to be sympathetic toward Slovene literary production.After having graduated top of his class in high school, he briefly considered joining the Benedictine Order, but his great interest in physics prevailed.He left for Vienna in 1853 to study mathematics and physics.