Created the cam class