created actor class and movies class and refactored the api