Cleaned up code & added TestExample resource