update pom and added default constructor