Added constructor for simplicity

now you can create a new object passing a string with an integer value