Added code of the possible function