Creating a script for testing line detection