<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def as_dict(self):
 """Package up the public attributes as a dict."""

        attrs = vars(self)
        return {key: attrs[key] for key in attrs if not key.startswith('_')}