created Cue object and implemented serialization