<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_year(cls, year):
 """ Create ``daterange`` based on a year :param year: Year as an integer :return: A new ``daterange`` for the given year .. versionadded:: 0.4.0 """


        first_day = date(year, 1, 1)
        return cls.from_date(first_day, period="year")