Created cards directive for greater reusability.