why not to set all attributes into @attributes variable? It might look like a hash