Reference and util classes

created structure for util classes. created reference class. implemented
reference class.