Fixed not to crash in MainActivity.onCreate().
Refactored to give "public" to row classes.