Methods and classes definition