Plog implemented, test cases added