created a class for insert