Added exception in Constructor if correct input not used.