Refactor homeworks enumerating