attempt on makeing R package