Using value and reference types