Complexify example with class