fixed constructor and added function readInput