write code for testing