Read class for imput from console