assing an el attribute to the constructor