added constructor, added show function