implementation of Bank and MyTime classes