fixed class import and constructor