added methods for task 49