added quad struct and esc class