Control of a Beam and Ball System with Arbitrarily Shaped Smooth Beams