implemented first function that takes number as second param