Control of a ball-and-plate system using a State-feedback controller