added in name space and the for loop to add the proper class names to the template. Also built out the intial ATTR object