implemented Shares resource and the add_share method