how do i define a readonly property in a constructor function?