third commit: added priority constructor