Implemented constructor accepting an int as argument