Implementation for number 2
Implementation for number 4