Moved methods (except nextInt) to companion object