Made MainAdapter's constructor public