beginning of background class (working)