added method to determine type key. added default constructor to
initialize type key with default type key