A complete framework for dormitory management