Peter Hamilton, Trinity College Dublin