please help, thanks

as I am struggling with this task

please help, thanks as I am struggling with this task class=