reusable library

Added setter for year