add objects via arrays

#19