implemented composer feature
moved class to src folder