Why was Jesus in Jerusalem with His parents?

I believe that they went for Passover and to pay taxes and be counted for the census which was required by law.