added environment exercise code