add string and custom class