accepted version by teacher