generate method for attributes
generate names for has_ attributes
add attributes helper method