Refactor the code for converting string to date
Added class to represent attachment metadata
Added ability to download attachments