implemented some member functions of molecule