DURING the summer of 1905 , while fulfilling his duties in the patent office in Bern , Switzerland , Albert Einstein was fiddling with a tantalizing outcome of the special theory of relativity he 'd published in June .