Changed constructors
Added renderer as main parameter