Adding algorithms to play with numbers