Added Record factory method