create method to load data

edit codingstyle