Fixes class snippet to actually work