Add parameters width & height to function definition