Added method to construct objects out of course rows