made basic functionality with one element object, created custom element object class