learn & understand R with some expenses analysis and calculations