Added function for practice test