class library: adjust code format