able to handle newlien in input
add practice code