attributes method now accepts multiple attributes

This will make code dryer. I also updated specs to test the method