refactor parallax out to a class