made main method point-free