Made split class generic