my solutions.:)