added resources and background class