Constructed general framework for Lab3 source.