Integer check added. Classes added.