Fixed Record class not compiling

Instantiated and returned a Record in retrieveRecord.