add() method to add every thingby type