practise simple ruby tricks