Implemented overloaded constructor with integer value input