Basic Ruby programs written while learning ruby