Refactored main method and constructor