commiting greeting method with tests