Fix some mistakes, input and basic class works