Add constructor to Record class

It is easier to create instances by using a constructor instead of
substituting each variable one at a time.