switched from function to object. Started on adding link generation functionality.