creating a data.frame with attributes