Typescript Create Object And Class Question