Practising ruby by writing codes.