old version of billmelater

please see the codes and merge them carefully because it is wrote on Nov/2013