initial work on constructing variables from other ones