learning R by practice