Defined and tested some methods