My solutions for Pref01