Console application to practice Factory pattern