Fully working Minimum of Two program.