Week7: added implementation till method 'from'