added 2 more functions, and added default constructor to friend