Seismic analysis and retrofit of a mid-rise building