A project completed on bayesian hierarchical modeling on astronomical data